package P_2023;

public class EmployeeTest {
    public static void main(String[] args) {
        Manager m = new Manager("001", "张三", 18000, 8000);
        System.out.println(m.getId() + ", " + m.getName() + ", " + m.getSalary() + ", " + m.bonus);
        m.work();
        m.eat();

        Cooker c = new Cooker("002", "李四", 12000);
        System.out.println(c.getId() + ", " + c.getName() + ", " + c.getSalary());
        c.work();
        c.eat();
    }
}
